package pojo;

/**
 * UserProjectId entity. @author MyEclipse Persistence Tools
 */

public class OnlineUserId implements java.io.Serializable {

	// Fields

	private long userId;
	private boolean location;
	private String ip;

	// Constructors

	/** default constructor */
	public OnlineUserId() {
	}

	/** full constructor */
	public OnlineUserId(long userId, boolean location, String ip) {
		this.userId = userId;
		this.location= location;
		this.ip = ip;
	}

	// Property accessors

	public long getUserId() {
		return this.userId;
	}

	public void setUserId(long userId) {
		this.userId = userId;
	}

	

	public boolean isLocation() {
		return location;
	}

	public void setLocation(boolean location) {
		this.location = location;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

//	public boolean equals(Object other) {
//		if ((this == other))
//			return true;
//		if ((other == null))
//			return false;
//		if (!(other instanceof OnlineUserId))
//			return false;
//		OnlineUserId castOther = (OnlineUserId) other;
//
//		return (this.getUserId() == castOther.getUserId())
//				&& (this.isLocation() == castOther.isLocation())
//				&& (this.getIp() == castOther.getIp());
//	}
//
//	public int hashCode() {
//		int result = 17;
//
//		result = 37 * result + (int) this.getUserId();
//		return result;
//	}

}